package com.ruicar.afs.cloud.account.common.service;

import com.ruicar.afs.cloud.account.dto.atom.VoucherRuleInfoDto;
import com.ruicar.afs.cloud.account.dto.tree.RuleTreeDto;

import java.util.List;

/**
 * @author infinity
 * @version 1.0
 * @date 2020/7/1 16:25
 */
public interface VoucherRuleInfoService {

    VoucherRuleInfoDto checkRule(VoucherRuleInfoDto voucherRuleInfoDto);

    VoucherRuleInfoDto checkAndSaveRule(VoucherRuleInfoDto voucherRuleInfoDto);

    List<RuleTreeDto> loadRuleTree(Long ruleId);

}
